package com.ruoyi.sale.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 销售订单明细对象 sale_order_detail
 * 
 * @author ruoyi
 * @date 2022-09-02
 */
public class SaleOrderDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long orderNo;

    /** 商品名字 */
    @Excel(name = "商品名字")
    private String productName;

    /** 商品规格 */
    @Excel(name = "商品规格")
    private String size;

    /** 商品型号 */
    @Excel(name = "商品型号")
    private String version;

    /** 商品颜色 */
    @Excel(name = "商品颜色")
    private String color;

    /** 商品单位 */
    @Excel(name = "商品单位")
    private String unit;

    /** 商品采购价 */
    @Excel(name = "商品采购价")
    private Long price;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Integer number;

    //退货数量
    private Integer backnum;

    /** 小计 */
    @Excel(name = "小计")
    private Long amount;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderNo(Long orderNo) 
    {
        this.orderNo = orderNo;
    }

    public Long getOrderNo() 
    {
        return orderNo;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setSize(String size) 
    {
        this.size = size;
    }

    public String getSize() 
    {
        return size;
    }
    public void setVersion(String version) 
    {
        this.version = version;
    }

    public String getVersion() 
    {
        return version;
    }
    public void setColor(String color) 
    {
        this.color = color;
    }

    public String getColor() 
    {
        return color;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setNumber(Integer number) 
    {
        this.number = number;
    }

    public Integer getNumber() 
    {
        return number;
    }
    public void setAmount(Long amount) 
    {
        this.amount = amount;
    }

    public Long getAmount() 
    {
        return amount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNo", getOrderNo())
            .append("productName", getProductName())
            .append("size", getSize())
            .append("version", getVersion())
            .append("color", getColor())
            .append("unit", getUnit())
            .append("price", getPrice())
            .append("number", getNumber())
            .append("amount", getAmount())
            .toString();
    }
}
